import AutoPagination from '@/components/bs-ui/pagination/autoPagination'
/*
name      名称
page      页
pageSize  页数
total     总数
setPage   跳转方法 */
const FouterPage = ({ page, pageSize, total, setPage, name = '', ...props }) => {
  return (
    <div className="bisheng-table-footer page_footer_zIndex px-6" style={{ background: '#F5F7FB' }} {...props}>
      <p className="break-keep text-sm text-muted-foreground">{name}</p>
      <AutoPagination
        className="m-0 w-auto justify-end"
        page={page}
        pageSize={pageSize}
        total={total}
        onChange={setPage}
      ></AutoPagination>
    </div>
  )
}
export default FouterPage
